QuickOPC User's Guide and Reference
UAEnumDefinition Constructor(IEnumerable<String>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeSchema Namespace > UAEnumDefinition Class > UAEnumDefinition Constructor : UAEnumDefinition Constructor(IEnumerable<String>)
Names of enum fields.
Initializes a new instance of the class. Initializes a new enum definition with given field names, and values starting from 0 and incrementing by 1.
Syntax
'Declaration
 
Public Function New( _
   ByVal fieldNames As IEnumerable(Of String) _
)
'Usage
 
Dim fieldNames As IEnumerable(Of String)
 
Dim instance As New UAEnumDefinition(fieldNames)
public UAEnumDefinition( 
   IEnumerable<string> fieldNames
)
public:
UAEnumDefinition( 
   IEnumerable<String^>^ fieldNames
)

Parameters

fieldNames
Names of enum fields.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also